package archer.framework.client.result;

import archer.framework.protocol.result.ExecuteResult;

import java.util.List;

/**
 * @author christ
 * @date 2016/5/16
 */
public class ListExecuteResult {

    /**
     * code
     */
    private String resultCode;

    /**
     * code ext
     */
    private String resultCodeExt;

    /**
     * message
     */
    private String resultMsg;

    /**
     * data
     */
    private List resultData;

    public ExecuteResult cast() {
        return new ExecuteResult()
                .setResultCode(resultCode)
                .setResultData(resultData)
                .setResultCodeExt(resultCodeExt)
                .setResultMsg(resultMsg);
    }

    public String getResultCode() {
        return resultCode;
    }

    public ListExecuteResult setResultCode(String resultCode) {
        this.resultCode = resultCode;
        return this;
    }

    public String getResultCodeExt() {
        return resultCodeExt;
    }

    public ListExecuteResult setResultCodeExt(String resultCodeExt) {
        this.resultCodeExt = resultCodeExt;
        return this;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public ListExecuteResult setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
        return this;
    }

    public List getResultData() {
        return resultData;
    }

    public ListExecuteResult setResultData(List resultData) {
        this.resultData = resultData;
        return this;
    }
}
